package com.b2.service;

import com.b2.pojo.dto.CourseDto;
import com.b2.pojo.dto.CourseRecommendDto;
import com.b2.pojo.entity.Course;
import com.b2.result.Result;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author 悦神
* @description 针对表【course】的数据库操作Service
* @createDate 2024-04-30 11:52:41
*/
public interface CourseService extends IService<Course> {
    Result<List<Course>> add(Course course);

    Result<List<Course>> delete(Long courseId);

    Result<String> update(Course course);

    Result<List<CourseDto>> selectList(String courseAuthority);

    Result<List<Course>> select(Long categoryId, String courseAuthority);

    Result<List<CourseRecommendDto>> recommendList(Integer courseRecommend, String courseAuthority);

    Result<String> setRecommend(Long courseId, Integer courseRecommend);
}
